<?php


namespace Hilaoyu\LaravelExtend;


class ModelVirtual extends Model
{
    protected $connection = null;
    protected $table = null;
    protected $primaryKey = null;
    protected $keyType = null;

    public $incrementing = false;

    public function usesTimestamps()
    {

        return false;
    }

    public function save(array $options = [])
    {
        if ($this->fireModelEvent('saving') === false) {
            return false;
        }
        $this->exists = true;
        $this->fireModelEvent('saved', false);
        return true;
    }

    public function delete()
    {
        if (! $this->exists) {
            return;
        }
        if ($this->fireModelEvent('deleting') === false) {
            return false;
        }
        $this->fireModelEvent('deleted', false);
        return true;
    }
}